<?php
/**
 * @var \common\components\scheduling\Schedule $schedule
 */
/**
 * 任务调度
 * crontab -e * * * * * php /path/to/yii schedule/run --scheduleFile=path/to/schedule.php 1>> /dev/null 2>&1
 * @see
 */

# cd path/to/product
# php yii schedule/run --scheduleFile=console/schedule.php

// 检测计划任务是否执行
//$schedule->exec('php yii job/check')->cron('1 */8 * * *');

// 更新时间
//$schedule->exec('ntpdate time.nist.gov')->cron('*/30 * * * *');

// git拉新
//$schedule->exec('git checkout . && git pull')->everyMinute();

// 队列
$schedule->exec('php yii queue/run')->everyMinute();

// 配置文件备份
$schedule->exec('php yii job/config-files-backup')->daily();
